﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;


namespace MensUnoShop.Models
{
    [DataContract]
    [Serializable]
    public class OrderMarket
    {
        [DataMember(Order = 0)]
        public Guid MOKGUID { set; get; }
        [DataMember(Order = 1)]
        public Guid MKGUID { set; get; }
        [DataMember(Order = 2)]
        public string TITLE { set; get; }
        [DataMember(Order = 3)]
        public string IMG { set; get; }
        [DataMember(Order = 4)]
        public string SN { set; get; }
        [DataMember(Order = 11)]
        public int SINGLEPRICE { set; get; }//賣場單價
        [DataMember(Order = 5)]
        public int PRICE { set; get; }//賣場折扣前總價
        [DataMember(Order = 6)]
        public Guid SPECID { set; get; }    //規格ID
        [DataMember(Order = 7)]
        public int DISCOUNT { set; get; }//賣場折扣
        [DataMember(Order = 8)]
        public string DISCOUNTNOTE { set; get; }
        [DataMember(Order = 9)]
        public string EVENTNOTE { set; get; }   //賣場行銷提示
        [DataMember(Order = 10)]
        public int AMOUNT { get; set; } //出貨資訊
        [DataMember(Order = 11)]
        public string COLOR { get; set; } //商品顏色(producttitle)
        [DataMember(Order = 12)]
        public Config.MarketType TYPE { get; set; } //賣場類型
        [DataMember(Order = 13)]
        public int COMBOID { get; set; } //合購ID
    }

    [DataContract]
    [Serializable]
    public class TinyMarket
    {
        [DataMember(Order = 1)]
        public Guid MKGUID { set; get; }
        [DataMember(Order = 2)]
        public string IMG { set; get; }
        [DataMember(Order = 3)]
        public string COLOR { get; set; } //商品顏色(producttitle)
        [DataMember(Order = 4)]
        public Guid PRODUCTID { get; set; } //商品
        [DataMember(Order = 5)]
        public int COMBOID { get; set; } //合購ID
        [DataMember(Order = 6)]
        public string SIZE { get; set; } //尺寸(spectitle)
        [DataMember(Order = 7)]
        public Guid SPECID { get; set; } //尺寸(spectitle)
        [DataMember(Order = 8)]
        public string URL { get; set; } //尺寸(spectitle)

    }
}
